﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//importamos
using EventSys.BussinesEntities;

namespace EventSys.Repository
{
    class InversionRepository:MasterRepository,IInversionRepository
    {

        public List<Inversion> GetFromAllInversion()
        {
            return Context.Inversions.ToList();
        }

        public Inversion GetInversionById(int id)
        {
            throw new NotImplementedException();
        }

        public void AddInversion(Inversion inversion)//, Int32 idEvento)
        {
            Context.Inversions.Add(inversion);


            Context.SaveChanges();
        }

        public void UpdateInversion(Inversion inversion)
        {
            throw new NotImplementedException();
        }

        public void RemoveInversion(int id)
        {
            throw new NotImplementedException();
        }
    }
}
